package com.my.commonlibrary.adapter;

import android.content.Context;

import com.my.commonlibrary.R;
import com.my.commonlibrary.base.HolderAdapter;
import com.my.commonlibrary.model.PullToRefreshEntity;

import java.util.List;

/**
 * Author : Cooper
 * Time : 2016/9/27  15:52
 * Description : 下拉刷新上拉加载 adapter
 */

public class PullToRefreshAdapter extends HolderAdapter<PullToRefreshEntity> {
    public PullToRefreshAdapter(Context mContext, List<PullToRefreshEntity> mDateList) {
        super(mContext, mDateList);
    }

    @Override
    public int buildLayoutView() {
        return R.layout.item_home_pull_to_refresh_layout;
    }

    @Override
    public void buildViewData(Context context, ViewHolder holder, PullToRefreshEntity pullToRefreshEntity, int position) {
        holder.setText(R.id.content_tv,pullToRefreshEntity.content);
    }
}
